import java.util.Scanner;

public class test4 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String a = in.next();
        String b = in.next();
        System.out.println(multiply(a,b));
    }
    public static String multiply(String num1, String num2) {
        int n = num1.length(),m=num2.length();
        int[] arr = new int[n+m-1];
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                arr[i+j] = (int)num1.charAt(i)*(int)num2.charAt(j);
            }
        }
        //处理进位
        int index=0,flag=0;
        while (index<arr.length||flag!=0){
            if(index<arr.length) flag+=arr[index++];
            stringBuilder.append(flag%10);
            flag/=10;
        }
        //处理前导零
        while (stringBuilder.length()>1&&stringBuilder.charAt(stringBuilder.length()-1)=='0'){
            stringBuilder.deleteCharAt(stringBuilder.length()-1);
        }
        return stringBuilder.reverse().toString();
    }
}
